<template>
  <ul>
    <li v-for="(item, index) in list" :key="index">
      <!-- <span v-if="!render">{{ item }}</span>
      <render-dom v-else :render-func="render" :name="item"></render-dom> -->
      <slot :number="item"></slot>
    </li>
  </ul>
</template>
<script>
import renderDom from '_c/render-dom'

export default {
  name: 'List',
  components: {
    renderDom
  },
  props: {
    list: {
      type: Array,
      default: () => []
    },
    render: {
      type: Function,
      default: () => {}
    }
  }
}
</script>
